Functions


Functions Summary
bool

cot_file_check(string path, string name, string ext)

Checks a file to be sure it is valid

int

cot_get_uploadmax()

Returns maximum size for uploaded file, in KiB (allowed in php.ini, and may be allowed in .htaccess)

static string

cot_safename(string basename, bool underscore, string postfix)

Strips all unsafe characters from file base name and converts it to latin

Function Detail

system\uploads.php at line 20

cot_file_check

public bool cot_file_check(string path, string name, string ext)
Checks a file to be sure it is valid
Parameters:
path - File path
name - File name
ext - File extension
Returns:

system\uploads.php at line 86

cot_get_uploadmax

public int cot_get_uploadmax()
Returns maximum size for uploaded file, in KiB (allowed in php.ini, and may be allowed in .htaccess)
Returns:

system\uploads.php at line 112

cot_safename

public static string cot_safename(string basename, bool underscore, string postfix)
Strips all unsafe characters from file base name and converts it to latin
Parameters:
basename - File base name
underscore - Convert spaces to underscores
postfix - Postfix appended to filename
Returns: